package com.hengyu.data.validator.filter;

import com.hengyu.data.validator.factory.HengYuValidator;

import javax.servlet.*;
import java.io.IOException;

/**
 * 拦截
 * ========================
 * Created with IntelliJ IDEA.
 * User：恒宇少年
 * Date：2017/3/19
 * Time：21:24
 * 码云：http://git.oschina.net/jnyqy
 * ========================
 */
public class HengYuValidationFilter implements Filter
{
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("filter : "+servletRequest.getParameterValues("ttt"));

    }

    public void destroy() {

    }
}
